package cn.longge.service.impl;

import cn.longge.entity.Examine;
import cn.longge.mapper.ExamineMapper;
import cn.longge.service.IExamineService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;
@Service
@Transactional
public class ExamineServiceImpl extends BaseServiceImpl<Examine> implements IExamineService {

    @Autowired
    private ExamineMapper examineMapper;

    @Override
    public PageInfo selectByCondition(int page, int pageSize, Map<String, Object> params) {
        PageHelper.startPage(page,pageSize);
        List<Examine> examines = examineMapper.selectByCondition(params);
        return new PageInfo(examines);
    }
}
